#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    myThread = new GetThread();
    connect(myThread,SIGNAL(UpdateSignal(QString,bool)),this,SLOT(UpdateSlot(QString,bool)));
    myThread->start();
    }

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::UpdateSlot(QString text, bool eos)
{
    QLabel* lab = eos ? ui->eos : ui->epc;
    lab->setText(text);
}
